import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import dayjs from 'dayjs'
import Vant from 'vant';
import { getFilePath, navigateBack, toPage, previewImage } from "@/utils/utils";
import { hideLoading, showLoading } from "@/utils/loading";
import NeTitle from "./components/NeTitle.vue";
import share from "@/utils/share";
import store from "@/store";
import 'vant/lib/index.css';
import 'vant/lib/index.less';
import 'static/css/base.less';
import PageDetail from "./components/PageDetail.vue";
import pageEnterMixin from './mixins/pageEnter';
import request from "@/utils/http"
Vue.config.ignoredElements = [/^wx-/]
Vue.config.productionTip = false
Vue.mixin(share)
Vue.use(Vant)
Vue.prototype.$store = store
Vue.prototype.$http = request
Vue.prototype.$toPage = toPage;
Vue.prototype.$showLoading = showLoading;
Vue.prototype.$hideLoading = hideLoading;
Vue.prototype.$getFilePath = getFilePath;
Vue.prototype.$previewImage = previewImage;
Vue.prototype.$navigateBack = navigateBack;
Vue.prototype.$FILE_PATH = process.env.VUE_APP_FILE_PATH
Vue.prototype.$dayjs = dayjs;
Vue.component('PageDetail', PageDetail)
Vue.component('NeTitle', NeTitle)
Vue.mixin(pageEnterMixin);
App.mpType = 'app'
window._AMapSecurityConfig = {
  securityJsCode: "d60ed49d7f08217342cbafd1e7560d6f",
};
const app = new Vue({
  ...App
})
app.$mount()
